/* 基础样式 */
body {
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: #f0f0f0;
    color: #333;
    overflow: hidden;
  }
  
  /* 动态背景 */
  .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(106, 17, 203, 0.8),
      rgba(37, 117, 252, 0.8)
    );
    z-index: -1;
    animation: moveBackground 10s infinite alternate;
  }
  
  @keyframes moveBackground {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.2);
    }
  }
  
  .container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
  }
  
  .card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.2),
      -8px -8px 16px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.3),
      -12px -12px 24px rgba(255, 255, 255, 0.2);
  }
  
  h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  /* 文件上传区域 */
  .upload-section {
    margin-bottom: 20px;
  }
  
  .upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    gap: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
      -5px -5px 10px rgba(255, 255, 255, 0.1);
  }
  
  .upload-label:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.3),
      -8px -8px 15px rgba(255, 255, 255, 0.2);
  }
  
  .upload-label:active {
    transform: translateY(0);
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2),
      inset -5px -5px 10px rgba(255, 255, 255, 0.1);
  }
  
  .upload-label i {
    font-size: 1.2em;
  }
  
  #fileInput {
    display: none;
  }
  
  /* 名字显示区域 */
  .name-display {
    font-size: 2em;
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2),
      inset -5px -5px 10px rgba(255, 255, 255, 0.1);
  }
  
  .name-display:hover {
    box-shadow: inset 8px 8px 15px rgba(0, 0, 0, 0.3),
      inset -8px -8px 15px rgba(255, 255, 255, 0.2);
  }
  
  .name-display span {
    z-index: 1;
  }
  
  /* 按钮组 */
  .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 1.1em;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
      -5px -5px 10px rgba(255, 255, 255, 0.1);
  }
  
  .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.3),
      -8px -8px 15px rgba(255, 255, 255, 0.2);
  }
  
  .btn:active {
    transform: translateY(0);
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2),
      inset -5px -5px 10px rgba(255, 255, 255, 0.1);
  }
  
  .start-btn {
    color: #28a745;
  }
  
  .stop-btn {
    color: #dc3545;
  }
  
  .btn:disabled {
    background: rgba(108, 117, 125, 0.8);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
      -5px -5px 10px rgba(255, 255, 255, 0.1);
  }
  
  .btn i {
    font-size: 1.2em;
  }
  